{% extends 'base.html'%}

{% block content %}
    <div class="jumbotron">
        <div class="content">
            <div class="inner">
                <div class="introduce">
                    <h4>Welcome Reading</h4>
                    <br>
                    <p><small>Personal Fiction 网站说明：</small></p>
                    <ol>
                        <li><small>此网站属于私人资源站点，请勿在公众平台传播，最多分享给好友。</small></li>
                        <li><small>此网站的所有内容均是网络资源，如有违规，请及时联系我们处理。</small></li>
                        <li><small>如果下载缓慢，或加载有延迟什么的请谅解(好的服务器买不起，太贵)。</small></li>
                        <li><small>在使用过程中如有疑问，请查看帮助或联系我们。</small></li>
                    </ol>
                </div>
                <div class="form_search">
                <input type="search" name="search" id="search" placeholder="搜索书名或作者，列如：辰东 排行">
                </div>
            </div>


        </div>
        <div class="lower">
            <nav class="speedy">
                <p>搜索历史：</p>
                <ul>
                    <li>暂无</li>
                </ul>
            </nav>

            <div  id="books">
                <div class="class_list">
                {% if result%}
                    <h3>{{ result['title'] }}</h3>
                    <hr>
                    {% for book in result['books'] %}
                        <div class="book">
                            <div class="index_bookinfo">
                                <a href="/book/{{ book['id'] }}"><h3>{{ book['name' ]}}</h3></a>
                                <small class="author">{{ book['author'] }}</small>
                            </div>
                            <div class="describe">
                                {{ book['describe'] }}
                            </div>
                        </div>
                    {% endfor %}
                {% endif %}
                <div class="bottom">
                    没有更多了~~
                </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}